package com.itheima.demo;

import java.util.ArrayList;
import java.util.Collections;

public class Demo_For {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        Collections.addAll(list,"aaa","bbb","ccc","ddd");
        for(String s : list){
            System.out.println(s);
        }
    }
}
